﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace ControlCenterService
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        /// <see cref="http://msdn.microsoft.com/en-us/library/zt39148a.aspx"/>
        static void Main()
        {
            if (System.Diagnostics.Debugger.IsAttached)
            {
                NetControlToolService netControlToolServiceLocalInstanceForDebugginInteractively = new NetControlToolService();
                //netControlToolServiceLocalInstanceForDebugginInteractively.on
                //System.Threading.Thread.Sleep(new TimeSpan(0, 0, 15));
                System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
            }
            else
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[] 
			{ 
				new NetControlToolService()
			};
                ServiceBase.Run(ServicesToRun);
            }
        }
    }
}
